SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE PROCEDURE [dbo].MarcasUpdateCommand
(
	@ID numeric(10, 0),
	@MARCA varchar(100),
	@ACTIVO bit,
	@Original_ID numeric(10, 0),
	@Original_MARCA varchar(100),
	@Original_ACTIVO bit
)
AS
	SET NOCOUNT OFF;
UPDATE [MARCAS] SET [ID] = @ID, [MARCA] = @MARCA, [ACTIVO] = @ACTIVO WHERE (([ID] = @Original_ID) AND ([MARCA] = @Original_MARCA) AND ([ACTIVO] = @Original_ACTIVO));
	
SELECT ID, MARCA, ACTIVO FROM MARCAS WHERE (ID = @ID)
GO
